class AddFieldsToRelease < ActiveRecord::Migration
  def self.up
    add_column :releases, :release_burndown_type, :integer, :null => false, :default => 0
    add_column :releases, :daily_points_burn_rate, :float, :null => false, :default => 0
    add_column :releases, :daily_backlog_grow_rate, :float, :null => false, :default => 0
    add_column :releases, :p10_factor, :float, :null => false, :default => 1
    add_column :releases, :p50_factor, :float, :null => false, :default => 1.4
    add_column :releases, :p90_factor, :float, :null => false, :default => 1.8
  end

  def self.down
    drop_column :releases, :release_burndown_type
    drop_column :releases, :daily_points_burn_rate
    drop_column :releases, :daily_backlog_grow_rate
    drop_column :releases, :p10_factor
    drop_column :releases, :p50_factor
    drop_column :releases, :p90_factor
  end
end
